<?php

/**
 * SearchController
 * 
 * @author
 * @version 
 */

require_once 'Zend/Controller/Action.php';

class SearchController extends Zend_Controller_Action {
	protected $_baseUrl;
	protected $_contextPath;
	protected $_utilities;
	protected $_sections;
	protected $_baseLanguage;
	
	public function init() {
		$this->_baseUrl = $this->_request->getBaseURL ();
		$this->_contextPath = "index";
		
		$this->view->assign ( "baseUrl", $this->_baseUrl );
		$this->view->assign ( "contextPath", $this->_contextPath );
		
		$this->_utilities = new Utilities ( );
		$this->view->assign ( "utilities", $this->_utilities );
		
		$section = new SectionModel ( );
		$sections = $section->getAll();
		$this->view->assign ( "sections", $sections );

	}
	
	/**
	 * The default action - show the home page
	 */
	public function indexAction() {
		$this->render('results');
	}

}
